// mypage/accSuccess/accSuccess.js
var util=require("../../utils/util");

Page({
  /*页面的初始数据*/
  data: {
    type: '',
    money: ''
  },
  /*生命周期函数--监听页面加载*/
  onLoad: function (options) {
    var that = this;
    if(options.type){
      if(options.type==2){
        wx.setNavigationBarTitle({title: '充值'})
      }
      that.setData({type: options.type,money:util.toThousands(util.toDecimal(options.money))})
    }
  },
  back_to:function(){
    wx.navigateBack({
      delta: 1
    });
  },
})